//配置数据的结构
const { Schema, model } = require('mongoose');
const advertisingSchema = new Schema({
    advertisingNumber:String //广告位编号
    ,advertisingName:String //广告位名称
    ,advertisingState:String //广告位状态
    ,community_id: {
        type:Schema.Types.ObjectId,
        ref:"communityModel"
    } //小区
    ,advertisingLocation:String //广告位位置
    ,advertisingSize:String //广告位大小
    ,chargeStandard:String //收费标准个数
    ,advertisingPrice:String //广告位价格
        
    }, { versionKey: false });
//配置数据模型
const advertisingModel = model('advertisingModel', advertisingSchema, 'advertising');

//把配置的数据模型暴露出去
module.exports={
    advertisingModel
}